package com.zxq.web.iot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zxq.web.iot.mapper.IotProjectFrameMapper;
import com.zxq.web.iot.domain.IotProjectFrame;
import com.zxq.web.iot.service.IIotProjectFrameService;

/**
 * 数据帧Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-06
 */
@Service
public class IotProjectFrameServiceImpl implements IIotProjectFrameService 
{
    @Autowired
    private IotProjectFrameMapper iotProjectFrameMapper;

    /**
     * 查询数据帧
     * 
     * @param id 数据帧主键
     * @return 数据帧
     */
    @Override
    public IotProjectFrame selectIotProjectFrameById(Long id)
    {
        return iotProjectFrameMapper.selectIotProjectFrameById(id);
    }

    /**
     * 查询数据帧列表
     * 
     * @param iotProjectFrame 数据帧
     * @return 数据帧
     */
    @Override
    public List<IotProjectFrame> selectIotProjectFrameList(IotProjectFrame iotProjectFrame)
    {
        return iotProjectFrameMapper.selectIotProjectFrameList(iotProjectFrame);
    }

    /**
     * 新增数据帧
     * 
     * @param iotProjectFrame 数据帧
     * @return 结果
     */
    @Override
    public int insertIotProjectFrame(IotProjectFrame iotProjectFrame)
    {
        return iotProjectFrameMapper.insertIotProjectFrame(iotProjectFrame);
    }

    /**
     * 修改数据帧
     * 
     * @param iotProjectFrame 数据帧
     * @return 结果
     */
    @Override
    public int updateIotProjectFrame(IotProjectFrame iotProjectFrame)
    {
        return iotProjectFrameMapper.updateIotProjectFrame(iotProjectFrame);
    }

    /**
     * 批量删除数据帧
     * 
     * @param ids 需要删除的数据帧主键
     * @return 结果
     */
    @Override
    public int deleteIotProjectFrameByIds(Long[] ids)
    {
        return iotProjectFrameMapper.deleteIotProjectFrameByIds(ids);
    }

    /**
     * 删除数据帧信息
     * 
     * @param id 数据帧主键
     * @return 结果
     */
    @Override
    public int deleteIotProjectFrameById(Long id)
    {
        return iotProjectFrameMapper.deleteIotProjectFrameById(id);
    }
}
